package kr.saeildamil.androidStudy_second.ani;

import kr.saeildamil.androidStudy_second.R;
import android.app.Activity;
import android.os.Bundle;
import android.widget.ArrayAdapter;
import android.widget.ListView;

public class TweenListenerAnimation extends Activity {
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.ch23_tweenlisteneranim);

		ArrayAdapter<CharSequence> adapter;
		adapter = ArrayAdapter.createFromResource(
				this, R.array.listanim,
				android.R.layout.simple_list_item_1);
		ListView list = (ListView) findViewById(R.id.ch23_listanim_list);
		list.setAdapter(adapter);
		
		overridePendingTransition(R.anim.translatereverse, 0);
	}
	
	protected void onPause() {
		super.onPause();
		overridePendingTransition(0, R.anim.translate);
	}
}
